if __name__ == '__main__':
    # img = [1, 2, 3, 4, 5, 6, 7]
    img = [1, 2, 3, 4, 5, 6, 7, 8]
    for i in range(int(len(img) / 2)):
        print(i)
        data = img[i]
        img[i] = img[len(img) - 1 - i]
        img[len(img) - 1 - i] = data

    print(img)
